package com.jsgt.greekfire.ui.home.menu.powerise

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.jsgt.greekfire.R
import com.jsgt.greekfire.bean.PrivilegeWalletBean

class PrivilegeWalletAdapter : BaseQuickAdapter<PrivilegeWalletBean, BaseViewHolder>(
    R.layout.item_privilege_wallet
) {

    init {
        addChildClickViewIds(R.id.txvAction)
    }

    override fun convert(holder: BaseViewHolder, item: PrivilegeWalletBean) {
        holder.setText(R.id.txvCoin, item.assetName)
            .setText(R.id.txvFrozen, item.frozenAmount)
            .setText(R.id.txvUsed, item.amount)
    }
}